<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<title>我的公众号</title>
<style>
body { background-color:#fcc803; margin:0px; padding:0px; font: 14px Verdana, Arial, Helvetica, sans-serif; color:#7a6100 }
.tips { width:100px; height:42px; background:url(../images/tips.jpg) no-repeat; line-height:42px; color:#fff; font-weight:bold; text-indent:1em }
.row { width:100%; margin:10px 0px; padding:0px; }
.text-center { text-align:center }
</style>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
{php $signPackage=$_W['account']['jssdkconfig'];}	
wx.config({
	debug: false,   
	appId: '<?php echo $signPackage["appId"];?>',
	timestamp: '<?php echo $signPackage["timestamp"];?>',
	nonceStr: '<?php echo $signPackage["nonceStr"];?>',
	signature: '<?php echo $signPackage["signature"];?>',
	jsApiList: ['checkJsApi','onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo',]
});


function onBridgeReady(){
	 WeixinJSBridge.call('hideOptionMenu');
	}
function loadfunction(){
	if (typeof WeixinJSBridge == "undefined"){
	    if( document.addEventListener ){
	        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
	    }else if (document.attachEvent){
	        document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
	        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
	    }
	}else{
	    onBridgeReady();
	}
}

wx.ready(function () {
	wx.hideOptionMenu();
	var shareData = {
			title: "{$settings['sharetitle']}",
			desc: "{$settings['sharedescription']}",
			link: "{$settings['shareurl']}",
			imgUrl: '{$_W['attachurl']}{$settings['shareimage']}',
			trigger: function (res) {},
			complete: function (res) {},
			success: function (res) {

			},
			cancel: function (res) {
			},
			fail: function (res) {
			}
		};
		wx.onMenuShareAppMessage(shareData);
		wx.onMenuShareQQ(shareData);
		wx.onMenuShareWeibo(shareData);
		wx.onMenuShareTimeline(shareData);
});
</script>
</head>
<body onload="loadfunction()">
<div class="row">
  <div class="tips">第一步</div>
</div>
<div class="row text-center"> 
<img style="display:none" src="http://open.weixin.qq.com/qr/code/?username={$settings['weixinid']}" width="180"/> 
<img src="{$_W['attachurl']}{$settings['qrcode_thumb']}" width="180"/>
</div>
<div class="row text-center" >
  <div style="font-size:22px;color:#fff;font-weight:bold;line-height:40px;color:#fa3137">"长按图片，识别图中二维码"</div>
  <div style="line-height:30px;"> 如长按图片无效，搜索以下微信号添加即可 </div>
  <div style="font-size:28px;font-weight:bold;line-height:60px;color:#000000"><span style="border:1px dashed #000000;padding:5px 10px">{$settings['weixinid']}</span></div>
  <div style="line-height:30px;">长按虚线框，拷贝微信号</div>
</div>
<div class="row">
  <div class="tips">第二步</div>
</div>
<div class="row text-center" >
<div style="font-size:22px;color:#fff;font-weight:bold;line-height:40px;color:#fa3137">发送"H"给公众号</div>
  <div style="line-height:30px;">点击图文消息，给朋友<br>每多一个朋友成功领取，你也会再得到一个礼物！</div>
  

</div>
</body>
</html>